home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr18
/
1st_111.zip
/
SCRIPTS.ZIP
/
ROSEMAIL.SCR
< prev
next >
Wrap
Text File
|
1993-05-23
|
2KB
|
74 lines
' ┌────────────────────────────────────┐
' │ Rosemail mail script for 1stReader │
' │ May 15th, 1993 │
' └────────────────────────────────────┘
IF SCR_CALL THEN GOTO SETUP
CAPTURE ON
KILL @API$(28)@API$(10).DL
NEWFILES ON
:SETUP
CALL $$PCB.SCR
IF NOT SCR_CALL THEN GOTO JOINCONF
TERMINAL
EXIT
:JOINCONF
COMMENT "@DATE@ @TIME@ Joining conference #@CONFERENCE@"
TRANSMIT "J @CONFERENCE@ Q - 1stReader #@API$(121)^M"
WAITFOR "=yes?" 3
IF FOUND=1 THEN TRANSMIT "N^M"
:DOOR
COMMENT "@DATE@ @TIME@ Opening Rosemail Door"
TRANSMIT "@QMAIL@ PROMPTS^M"
LOOKFOR "<SET TPROT>" "Z^M"
LOOKFOR "<SET COMPRESSOR>" "Z^M"
:REPLIES
IF NOT REPLIES GOTO DOWNLOAD
COMMENT "@DATE@ @TIME@ Uploading replies"
WAITFOR "<COMMAND>"
TRANSMIT "U^M"
WAITFOR "<UPLOAD>"
UPLOAD @REPDIR@@BBSID@.REP
WAITFOR "<MESSAGES INSERTED>|<MESSAGES NOT INSERTED>|<BAD UPLD>"
IF FOUND=1 GOTO GOODUPLD
GOTO DOWNLOAD
:GOODUPLD
COMMENT "@DATE@ @TIME@ Deleting @BBSID@.REP"
KILL @REPDIR@@BBSID@.REP
COUNT REP
:DOWNLOAD
WAITFOR "<COMMAND>"
IF SCR_REPLY THEN GOTO GOODBYE
TRANSMIT "D^M"
COMMENT "@DATE@ @TIME@ Scanning for new messages"
WAITFOR "<DLASK>|<NO TRANSFER>"
IF FOUND=2 THEN GOTO GOODBYE
TRANSMIT "Y^M"
WAITFOR "<DOWNLOAD>|<NO TIME>"
IF FOUND=2 THEN GOTO GOODBYE
DOWNLOAD @PACKETDIR@@BBSID@.QWK
WAITFOR "<DL SUCCESS>|<DL ERROR>"
IF FOUND=2 THEN GOTO GOODBYE
COUNT QWK
:GOODBYE
WAITFOR "<COMMAND>" 20
COMMENT "@DATE@ @TIME@ Transmitting GOODBYE command"
TRANSMIT "G^M"
COMMENT "@DATE@ @TIME@ Waiting for disconnect"
LOOKFOR "<GOODBYE>" "^M"
WAITFOR "<HANGUP>" 20
PAUSE 2
CAPTURE OFF